import java.util.Arrays;

public class Test01 {
    public static void main(String[] args) {
        int [] array = {1,2,3,4,5};
        //把数组中的元素扩大2倍
        for (int i = 0; i < array.length; i++) {
            array[i] = array[i] * 2;
        }
        System.out.println(Arrays.toString(array));

    }
}
